import { Injectable } from '@nestjs/common';
import { Document } from '@prisma/client';
import { PrismaService } from 'src/common/db/prisma.service';

@Injectable()
export class DocumentService {
    constructor(private readonly prisma: PrismaService) { }

    async create(document: Document) {
        return this.prisma.document.create({
            data: document,
        });
    }

}
